package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.CheckGroup;

import java.util.List;

public interface CheckGroupService {
    //添加检查组
    public void add(CheckGroup checkGroup, Integer [] checkitemIds);

    //分页查询
    public PageResult findPage(QueryPageBean queryPageBean);
    //数据回显
    public CheckGroup findById(Integer id);
    //根据checkgroupid查找对应的checkitemids
    public List<Integer> findCheckItemIdsByCheckGroupId(Integer id);
    //更新检查组
    public void edit(CheckGroup checkGroup, Integer[] checkitemIds);

    //删除检查组
    public void delete(Integer id);
    //查询所有的检查组
    public List<CheckGroup> findAll();
}
